﻿using D.Medicalcare.Domain.Entities;
using D.Medicalcare.ErrorCode;
using MediatR;
using System.ComponentModel.DataAnnotations;

namespace D.Medicalcare.Write.API.Application.Commands.RegistrationCommand
{
    public class AddRegistrationCommand:IRequest<APIResult<Registration>>
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int RegistrationId { get; set; }
        /// <summary>
        /// 就诊人
        /// </summary>
        public int PatientId { get; set; }
        /// <summary>
        /// 医生
        /// </summary>
        public int DoctorId { get; set; }
        /// <summary>
        /// 挂号类型
        /// </summary>
        public string? RegistrationType { get; set; }
        /// <summary>
        /// 挂号状态
        /// </summary>
        public string? Statue { get; set; }
        /// <summary>
        /// 预约时间
        /// </summary>
        public DateTime? RegistrationTime { get; set; }
        /// <summary>
        /// 门诊时间
        /// </summary>
        public string? Mtime { get; set; }
        /// <summary>
        /// 待诊时间
        /// </summary>
        public string? WaitTime { get; set; }
        /// <summary>
        /// 取消时间/就诊时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 取消原因
        /// </summary>
        public string? UpdateReson { get; set; }
    }
}
